package com.hyg.idea.api;

/**
 * FileName: ApiInterface
 * Author: huangyuguang
 * Date: 2022/5/17
 */
public class ApiInterface {

    private static ApiInterface instance;

    public static ApiInterface getInstance(){
        if(instance == null){
            synchronized (ApiInterface.class){
                if(instance == null){
                    instance = new ApiInterface();
                }
            }
        }
        return instance;
    }

    private UserInfoInterface userInfoInterface;

    public static void setInstance(ApiInterface instance) {
        ApiInterface.instance = instance;
    }

    public UserInfoInterface getUserInfoInterface() {
        return userInfoInterface;
    }

    public void setUserInfoInterface(UserInfoInterface userInfoInterface) {
        this.userInfoInterface = userInfoInterface;
    }
}
